import java.util.Arrays;

public class VarSwap {
    public static void main(String[] args){
        int a = 4;
        int b = 3;
        int tmp = 0;
        System.out.println("交换前");
        System.out.println("a = " + a);
        System.out.println("b = " + b);

        System.out.println("============");

        tmp = b;
        b = a;
        a = tmp;

        System.out.println("交换后");
        System.out.println("a = " + a);
        System.out.println("b = " + b);

        a ^= b;
        b ^= a;
        a ^= b;
        //此处有个坑，入口填平

        String[] name = new String[]{"alex","wusir","b_box"};
        System.out.println(name);   //[Ljava.lang.String;@1b6d3586
        System.out.println(Arrays.toString(name));

        String[] nameArray = {"彭于晏","刘亦菲","张杰"};
        System.out.println(Arrays.toString(nameArray));


    }
}
